<?php
/* Smarty version 3.1.31, created on 2020-10-23 11:51:33
  from "D:\WWW\youke365_free\web\themes\mobile\default\index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.31',
  'unifunc' => 'content_5f925345e8f903_94473822',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ce1d1fe8741d3a9506170357591f7fa0ce15a96e' => 
    array (
      0 => 'D:\\WWW\\youke365_free\\web\\themes\\mobile\\default\\index.html',
      1 => 1603425082,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f925345e8f903_94473822 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->compiled->nocache_hash = '186365f925345dfb1e0_67138058';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	 <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	 <link href="<?php echo $_smarty_tpl->tpl_vars['site_root']->value;?>
public/layui/css/layui.css" rel="stylesheet" type="text/css" />
	 <link href="<?php echo $_smarty_tpl->tpl_vars['site_root']->value;?>
themes/mobile/<?php echo $_smarty_tpl->tpl_vars['cfg']->value['default_mobile_theme'];?>
/common/style.css" rel="stylesheet" type="text/css" />
	<title>首页-<?php echo $_smarty_tpl->tpl_vars['site_name']->value;?>
 - 手机版</title>
   <meta name="Keywords" content="<?php echo $_smarty_tpl->tpl_vars['site_keywords']->value;?>
">
   <meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['site_description']->value;?>
">
   <meta name="author" content="Youke365 v<?php echo @constant('SYS_VERSION');?>
">
</head>
<body>
<nav id="nav">
<img src="<?php echo $_smarty_tpl->tpl_vars['cfg']->value['site_logo'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['cfg']->value['site_title'];?>
" style="width:150px;">
</nav>

<!-- 搜索 -->
<div class="search">
<form action="https://m.baidu.com/s">
<input name="word" value="" class="keywords">
<button >百度一下</button>
</form>
</div>
<div style="width:100%;text-align:center;margin-bottom:10px;">
<?php echo get_adcode(21);?>

</div>
<!-- 导航 -->
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
    <li class="layui-this">网址导航</li>
    <li id="news">资讯</li>
    <li id="site">最新网站</li>
    <li id="best-site">推荐网站</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<!-- 顶置站点 -->
				<!-- 推荐 -->
				<?php if ($_smarty_tpl->tpl_vars['cfg']->value['home_isbest'] > '0') {?>
				<h2 class="title">推荐导航</h2>
				<div class="bestbox">
						<ul class="clearfix bestbox-list">
							<?php ob_start();
echo $_smarty_tpl->tpl_vars['cfg']->value['home_isbest'];
$_prefixVariable1=ob_get_clean();
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, get_websites(0,$_prefixVariable1,true), 'best');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['best']->value) {
?>
							<li><a href="<?php echo $_smarty_tpl->tpl_vars['best']->value['web_url'];?>
" target="_blank" title="<?php echo $_smarty_tpl->tpl_vars['best']->value['web_name'];?>
">
							<?php if ($_smarty_tpl->tpl_vars['best']->value['web_ico']) {?><img src="<?php echo $_smarty_tpl->tpl_vars['best']->value['web_ico'];?>
" style="width:15px;height:15px;"><?php }?> <?php echo $_smarty_tpl->tpl_vars['best']->value['web_name'];?>
</a></li>
							<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

						</ul>

				</div>
				<?php }?>


				<h2 class="title">网址导航</h2>
					<!-- 推荐分类 -->
					<div class="coolbox">
				        <div class="coolbox-body">
						    <ul class="coolbox-list">
								<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, get_best_categories('webdir'), 'item', false, NULL, 'isite', array (
  'iteration' => true,
));
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['__smarty_foreach_isite']->value['iteration']++;
?>
								<li class="clearfix">
								       <span class="cate"><?php echo $_smarty_tpl->tpl_vars['item']->value['cate_name'];?>
</span>
										<div class="right">
										<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, get_websites($_smarty_tpl->tpl_vars['item']->value['cate_id'],4), 'cool');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['cool']->value) {
?>
										<a class="site" href="<?php echo url('mobile/siteinfo',array('id'=>$_smarty_tpl->tpl_vars['cool']->value['web_id']));?>
" 
										title="<?php echo $_smarty_tpl->tpl_vars['cool']->value['web_name'];?>
">
										<?php if ($_smarty_tpl->tpl_vars['cool']->value['web_ico']) {?><img src="<?php echo $_smarty_tpl->tpl_vars['cool']->value['web_ico'];?>
" style="width:15px;height:15px;"><?php }
echo $_smarty_tpl->tpl_vars['cool']->value['web_name'];?>
</a>
										<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

										</div>
										<div class="clear"></div>
									
								</li>
								<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_isite']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_isite']->value['iteration'] : null)%5 == 0 && (isset($_smarty_tpl->tpl_vars['__smarty_foreach_isite']->value['iteration']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_isite']->value['iteration'] : null) != 20) {?>
								<li class="sline"></li>
								<?php }?>
								<?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

							</ul>
						</div>
					</div>
<!-- 推荐网站目录 -->
    <div class="new-site">
        <ul >
   <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, get_websites(0,6), 'vo');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['vo']->value) {
?>  
   
           <li><a href="<?php echo url('mobile/siteinfo',array('id'=>$_smarty_tpl->tpl_vars['vo']->value['web_id']));?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['vo']->value['web_pic'];?>
"></a><h4><?php echo $_smarty_tpl->tpl_vars['vo']->value['web_name'];?>
</h4></li>
    
    <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

       </ul>
    </div>



    </div>
    <!-- 资讯内容 -->
    <div class="layui-tab-item">

   <ul id="article-list">
	</ul>

    </div>
   <!-- 最新网站内容 -->
    <div class="layui-tab-item" id="new-site-list">
           <ul>
          <li></li>
          </ul>

    </div>

   <!-- 推荐网站内容 -->
    <div class="layui-tab-item" id="best-site-list">
           <ul>
          <li></li>
          </ul>

    </div>   
  </div>
</div>      
      

</div>


<div style="width:100%;text-align:center;margin-bottom:10px;">
<?php echo get_adcode(22);?>

</div>
<div class="footer">
<a href="<?php echo url('mobile/index');?>
?visit=pc">电脑版</a> Powered by <a href="http://www.youke365.site">Youke365</a> v<?php echo @constant('SYS_VERSION');?>
  <?php echo $_smarty_tpl->tpl_vars['cfg']->value['site_code'];?>

</div>

<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['site_root']->value;?>
public/js/jquery.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['site_root']->value;?>
public/layui/layui.js"><?php echo '</script'; ?>
>

 
<?php echo '<script'; ?>
>
//注意：选项卡 依赖 element 模块，否则无法进行功能性操作
layui.use('element', function(){
  var element = layui.element;

});


<?php echo '</script'; ?>
>

<?php echo '<script'; ?>
>
 $(function(){
 		
	$(document).on("click","#article-list .open span",function(){
		
    
      if($(this).attr('data-status') == 'hide'){
         $(this).parents('li').css("height","auto").find('p').removeClass("content-height");
               $(this).html('展开');
      $(this).attr('data-status','show');
      }else{
      	$(this).parents('li').css("height","auto").find('p').addClass("content-height");
      	      $(this).html('收缩');
      $(this).attr('data-status','hide');
      }

	});
 
 });
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
layui.use('flow', function(){
  var flow = layui.flow;
  flow.load({
    elem: '#article-list' //指定列表容器
    ,done: function(page, next){ //到达临界点（默认滚动触发），触发下一页
      var lis = [];
      //以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
      $.get('/api/article.html?type=get_article_list&page='+page, function(res){

        //假设你的列表返回在data集合中
        layui.each(res.data, function(index, item){
           var url = "<?php echo url('mobile/artinfo',array('id'=>'"+item.art_id+"'));?>
";
          lis.push('<li><a href="'+url+'"><h2>'+ item.art_title +'</h2></a><a href="'+url+'"><p>'+item.art_content+'</p></a></li>');
        }); 
        
        // //执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
        // //pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
        next(lis.join(''), page < res.pages);    
      });
    }
  });
// 加载最新站点

  flow.load({
    elem: '#new-site-list' //指定列表容器
    ,done: function(page, next){ //到达临界点（默认滚动触发），触发下一页
      var lis = [];
      //以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
      $.get('/api/website.html?type=1&page='+page, function(res){

        //假设你的列表返回在data集合中
        layui.each(res.data, function(index, item){
          var url="<?php echo url('/');?>
";
          var siteurl ="<?php echo url('mobile/siteinfo',array('id'=>'"+item.web_id+"'));?>
";
          lis.push('<li style="overflow:hidden;margin-bottom:10px;"><div style="width:15%;min-width:100px;display:inline-block;float: left;margin-right:20px;;"><a href="'+siteurl+'"><img src="'+item.web_pic+'" style="width:100%;height:100%;"></a></div><div style="width:54%;min-width:50px;display:inline-block;"><a href="'+siteurl+'"><h2 style="margin-bottom:10px">'+ item.web_name +'</h2></a><p style="height:60px;overflow:hidden">'+item.web_intro+'</p></div></li>');
        }); 
        
        // //执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
        // //pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
        next(lis.join(''), page < res.pages);    
      });
    }
  });
  flow.load({
    elem: '#best-site-list' //指定列表容器
    ,done: function(page, next){ //到达临界点（默认滚动触发），触发下一页
      var lis = [];
      //以jQuery的Ajax请求为例，请求下一页数据（注意：page是从2开始返回）
      $.get('/api/website.html?type=2&page='+page, function(res){

        //假设你的列表返回在data集合中
        layui.each(res.data, function(index, item){
          var url="<?php echo url('/');?>
";
          var siteurl ="<?php echo url('mobile/siteinfo',array('id'=>'"+item.web_id+"'));?>
";
          lis.push('<li style="overflow:hidden;margin-bottom:10px;"><div style="width:15%;min-width:100px;display:inline-block;float: left;margin-right:20px;;"><a href="'+siteurl+'"><img src="'+item.web_pic+'" style="width:100%;height:100%;"></a></div><div style="width:54%;min-width:50px;display:inline-block;"><a href="'+siteurl+'"><h2 style="margin-bottom:10px">'+ item.web_name +'</h2></a><p style="height:60px;overflow:hidden">'+item.web_intro+'</p></div></li>');
        }); 
        
        // //执行下一页渲染，第二参数为：满足“加载更多”的条件，即后面仍有分页
        // //pages为Ajax返回的总页数，只有当前页小于总页数的情况下，才会继续出现加载更多
        next(lis.join(''), page < res.pages);    
      });
    }
  });
});
      
<?php echo '</script'; ?>
>
</body>
</html><?php }
}
